// 响应头中间件
module.exports = async (context, next) => {
  context.set("Content-Type", "application/json; charset=utf-8")
  context.set("Access-Control-Allow-Origin", "*")
  context.set("Access-Control-Allow-Methods", "OPTIONS, GET, PUT, POST, DELETE")
  await next()
}